<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.weifly.jettycn.domain.Project" %>
<%@ page import="com.weifly.jettycn.domain.Release" %>
<%@ page import="com.weifly.jettycn.JettycnUtil" %>
<%@ page import="com.weifly.jettycn.util.PageInfo" %>
<%@ page import="java.util.List" %>
<%
	Project project = (Project)request.getAttribute("project");
%>

<div class="project-detail">
  <div class="hd">
    <span><%=project.getName()%></span>
  </div>
  <div style="padding: 6px;">
  <%=project.getDescription() %>
  </div>
  <table class="table_show1" border="0" cellspacing="0" cellpadding="0" style="width: 100%;">
    <col style="width: 65px;">
    <tr>
      <td width="65px"><strong>项目主页：</strong></td>
      <td><a href="<%=project.getHomepage() %>" target="_blank"><%=project.getHomepage() %></a></td>
    </tr>
    <tr>
      <td><strong>项目作者：</strong></td>
      <td><%=project.getAuthor() %></td>
    </tr>
    <tr>
      <td><strong>更新时间：</strong></td>
      <td><%=JettycnUtil.formatDateTime(project.getUpdate()) %></td>
    </tr>
  </table>
</div>

<div class="project-detail">
  <div class="hd">
    <span>最近发布版</span>
  </div>
<%
	PageInfo releasePageInfo = (PageInfo)request.getAttribute("releaseList");
	List dataList = releasePageInfo.getDataList();
	for(int i=0;i<dataList.size();i++){
		Release rel = (Release)dataList.get(i);
%>
  <div style="margin: 6px;">
    <div>
      <span class="project-version"><strong style="font-size: 14px;"><%=rel.getVersion()%></strong>&nbsp;&nbsp;&nbsp;发布于&nbsp;&nbsp;&nbsp;<%=JettycnUtil.formatDate(rel.getPublishdate()) %></span>
    </div>
<%
		if(rel.getDesc()!=null && rel.getDesc().trim().length()>0){
%>
    <p><%=rel.getDesc() %></p>
<%
		}
%>
  </div>
<%
	}
%>
</div>